package com.zsrt.java.day20161230.wrl.t04;

public class HuiWen {
	public static void main(String[] args) {
		String str = "abcdefg";
		String ss  = "";
		
		int strl   = str.length() - 1;
		
		//实现反转
		while(strl >= 0){
			ss = ss + str.charAt(strl);
			strl--;
		}
		System.out.println("反转后的字符串："+ss);
	}

}
